<template>
  <div class='notice work-study'>
    <Search :searchInfo="searchInfo" :resquest="resquest" :pageInfo="pageInfo" :getListData="getListData" :routerAdd="routerAdd" :columnsData="formaltSearch" :categoryData="formaltCate" />
    <List :listData="listData" @forMore="getMoreInfo">
      <ListModel :listData="listData" :routerDetail="routerDetail" />
    </List>
  </div>
</template>
<script>
import Search from '../../jobServe/common/nav.vue'
import MixIns from '../../../../mixin/mixin.js'
import List from '../../../../components/list.vue'
import ListModel from './model/list'
export default {
  components: {Search,List,ListModel},
  name: "",
  data() {
    return {
      serarchSelect:["全部"],
      categoryData:[
        {label:"全部",value:"0"},
      ],
      searchInfo:{
        search:"",
        category:"0"
      },
    };
  },
  computed:{
    formaltSearch(){
      return this.serarchSelect.concat(this.selectData.data1.map(val=>val.name)) 
    },

    formaltCate(){
      return this.categoryData.concat(this.selectData.data1.map(val=>{
        return {
          label:val.name,
          value:val.id
        }
      })) 
    }
  },
  methods: {},
  created() {},
  mixins:[MixIns]
};
</script>
<style lang="scss" scoped>
.notice {
  height: 100%
}
</style>